package com.computergames.server.message;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString(callSuper = true)
public class QuitRoomRequestMessage extends Message implements HasJwtToken{
    //private String roomName;
    private String username;
    private String jwtToken;

    public QuitRoomRequestMessage() {
    }

    public QuitRoomRequestMessage(String username, String jwtToken) {
        //this.roomName = roomName;
        this.username = username;
        this.jwtToken = jwtToken;
    }

    @Override
    public int getMessageType() {
        return QuitRoomRequestMessage;
    }
}
